#import <Foundation/Foundation.h>
#import "GZRCpayModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface GZRCpaySDK : NSObject

/* GZRCpaySDK   v1.0 */
/* 更新日期 2020.12.3 */

/**
 *  创建支付单例服务
 *
 *  @return 返回单例对象
 */
+ (GZRCpaySDK *)defaultService;

/**
 *  唤起支付
 *
 *  @param payModel                   支付参数模型，必需先给模型赋值，详见GZRCpayModel
 *  @param completionBlock    唤起支付结果回调
 */
- (void)payModel:(GZRCpayModel *)payModel
        callback:(void(^)(id responseObject))completionBlock;

/**
 *  支付结果
 *
 *  @param resultUrl                黔农云app返回的支付结果url
 *  @param completionBlock   支付结果回调
 */
- (void)paymentResult:(NSURL *)resultUrl
             callback:(void(^)(id responseObject))completionBlock;

@end

NS_ASSUME_NONNULL_END
